<?php
    $block_title =     $this->vote_info->thread_name.($this->vote_info->phase_name!=""?" - ".$this->vote_info->phase_name:"");
?>
<!--Left Bar:-->
        <!--right Bar:-->
        <div id="menu_left">
                 <div class="nen_menu_left">
                     <img width="282" height="25" alt="" src="<?php print $this->spath; ?>/images/news_top.jpg"/>
                       <div class="menu_left">
                            
                            <div class="title_l_t">
                                <a href="#">Slide ảnh</a>
                            </div>
                            
                            <div>
                                 <div class="sile_anh">
                                 <script type="text/javascript">
                                    new fadeshow(fadeimages, 240, 320, 0, 3000, 0, "R");                
                                  </script>
                                  
                              </div>
                                  <p class="tex_slide">
                             Hãy bình chọn cho các thí sinh mình yêu thích nhất!
                                Để đánh giá và bình chọn cho các thí sinh trên <a href="http://www.tamtay.vn" target="_blank">www.tamtay.vn</a> bạn cần phải <a href="<?php echo IDS_REGISTER_URL;?>" target="_blank">đăng ký</a> tài khoản.          
                                  </p>
                            </div>
                            <div class="clear"></div>
                       </div>
                       <!--div mo-->
                     <img width="282" height="16" src="<?php print $this->spath; ?>/images/news_bot.jpg" alt=""/>
                 </div>
                 
                 <!--binh chon-->
                 <div class="binh_chon"><a href="#"><img src="<?php print $this->spath; ?>/images/binhchon.jpg" alt="Bình chọn" width="291" height="111" border="0" /></a></div>
                 
                 <!--Top 10 thi sinh:-->
                <?php echo $top_block?>
                <!--Het top 10-->
                <?php //displayBanner($event->eid, "left-2");?>
                 
                 
                 
<!-- y kien ban doc-->
                <div id="wall" class="nen_menu_left">
                    <div class="menu_left2">
                        <div class="tex_menu_left">
                            <img src="<?php print $this->spath; ?>/images/icon123.jpg" width="45" height="45" border="0" /><a href="#">Ý kiến của bạn</a>
                        </div>
                        <div class="y_kien" id="wall_block">
                            <?php echo $this->comment_block?>
                        </div>
                    </div>
                </div>     
                 <!--quancao-->
                <?php //displayBanner($event->eid, "left-3");?>
                 <div class="clear"></div>
                 <!--div-->
           </div>

            <div id="menu_right">
                <div class="nen_nd">
                    <div class="menu_right">
                        <div class="title">
                            <img src="<?php print $this->spath; ?>/images/danhsach.jpg" width="89" height="20" alt="Danh sách" />
                        </div>                    
                    </div>

                    <div class="photo_poll">
                        <ul class="member_list">
                            <!--Tieu de:-->
                            <li class="header">
                                <div class="float-left image">&nbsp;Hình ảnh</div>
                                <div class="float-left name">Thông tin</div>
                                <div class="float-left view">Xem</div>
                                <div class="float-left sms">SMS</div>
                                <div class="float-left web">Web</div>
                                <div class="float-left total">Tổng</div>
                                <div class="clear"></div>
                            </li>
                            <?php
                                if(is_array($this->voted_list) && count($this->voted_list)>0){
                                $i = 1;
                                foreach($this->voted_list as $node){
                        
                                    $img="http://img.tamtay.vn" . $node->thumbnail;
                                    $star = 0;
                                    if(isset($node->rate_value))
                                        $star=ceil($node->rate_value/20);
                                    
                                    //$web_vote=round($o->rate_value*$o->vote_web_count, 0);
                                    $web_vote = $node->vote_web_count;
                                    if ($this->total_vote_web==0){
                                        $web_percent=0;
                                    }
                                    else{
                                        $web_percent=round($web_vote/$this->total_vote_web, 4)*100;
                                    }
                                    if ($this->total_vote_sms==0){
                                        $sms_percent=0;
                                    }
                                    else{
                                        $sms_percent=round($node->vote_sms_count/$this->total_vote_sms, 4)*100;
                                    }
                                    $t=$web_percent + $sms_percent;
                                ?>
                            <!--Danh sach thi sinh:-->
                            <li class="item_member">
                                <div class="float-left image">
                                    <!--<span class="order">1</span>-->
                                    <a href="http://photo.tamtay.vn/photo/view/<?php echo $node->aid;?>" title="<?php echo $node->album_name;?>"><img src="<?php print $this->spath; ?>/images/spacer.gif" style="background-image: url('<?php echo $static_server.$node->thumbnail;?>'); background-position: center; background-repeat: no-repeat;" /></a>
                                </div>
                                <div class="float-left name">
                                    <p><a href="http://photo.tamtay.vn/photo/view/<?php echo $node->aid;?>" target="_blank"><?php echo $node->album_name;?></a></p>
                                    <p><img src="http://img.tamtay.vn/images/stars<?php echo $star; ?>.gif" /></p>
                                    <p class="soantin">Soạn <span class="maso"><?php echo $vote_info->sms_command_code;?>&nbsp;<?php echo $node->sbd; ?></span> gửi <span class="gui"><?php echo $vote_info->sms_destination1;?></span> (<em><span style="color:red;"><?php echo $vote_info->sms_basic_num1;?></span> phiếu</em>)
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hoặc gửi <span class="gui"><?php echo $vote_info->sms_destination2;?></span> (<em><span style="color:red;"><?php echo $vote_info->sms_basic_num2;?></span> phiếu</em>).
                                        </p>
                                </div>                        
                                <div class="float-left view">
                                    <?php echo $node->view_count; ?>
                                </div>
                                <div class="float-left sms">
                                    <?php echo $sms_percent;?>%
                                </div>
                                <div class="float-left web">
                                    <?php echo $web_percent;?>%
                                </div>
                                <div class="float-left total">
                                    <?php echo $t;?>%
                                </div>
                                <div class="clear"></div>
                            </li>
                          <?php
                                }// End for loop
                            }// End if
                        ?>
                        </ul>
                    </div>                            
                    <div class="clear"></div>
                </div>
            </div>
            <div class="clear"></div>
    
        
        